import {
	defineConfig
} from "vite"
import uni from "@dcloudio/vite-plugin-uni";
import path from 'path'
export default defineConfig({
	plugins: [
		uni()
	],
	resolve: {
		alias: {
			'@': path.resolve(__dirname, 'src')
		}
	},
	server: {
		proxy: {
			'/undefined': {
				target: 'http://10.128.51.147:8088/undefined',
				changeOrigin: true,
				rewrite: path => path.replace(/^\/undefined/, '')
			},

		}
	}
})